#include <stdio.h>

/**
 * 使用指针复制字符串
 */
void strcopy(char src[], char dest[]) {

    while(*src) {
        *dest = *src;       
        src++;
        dest++;
    }

    *dest = '\0';

}

int main(int argc, char *argv[])
{
    char src[] = "I am confident with c programming.";
    char dest[120] = {0};

    strcopy(src, dest);


    printf("dest:%s\n", dest);

    return 0;
}
